package com.zhxh.nzpos.model;

import java.io.Serializable;

/**
 * 销售
 * @author Administrator
 *
 */
public class Sellout implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4335161028302220817L;

	private String id; // 编号
	
	private String goodId; // 商品ID
	private String goodsName; // 商品name

	private String sellDate; // 权限类型ID
	
	private float price;//价格
	private int count;//数量
	private boolean payed;//是否付款
	private String opratorId;//操作员ID
	
	private long created; // 创建时间
	private long modified; // 修改时间
	private int Ponits; //单件积分
	private String orderId; // 订单号,用于退货
	
	private String categoryId; //商品类别
	private String units; // 单位
	private String specification; // 规格
	
	public String getGoodsName() {
		return goodsName;
	}
	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}
	
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getGoodId() {
		return goodId;
	}
	public void setGoodId(String goodId) {
		this.goodId = goodId;
	}
	public String getSellDate() {
		return sellDate;
	}
	public void setSellDate(String sellDate) {
		this.sellDate = sellDate;
	}
	public float getPrice() {
		return price;
	}
	public void setPrice(float price) {
		this.price = price;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public boolean isPayed() {
		return payed;
	}
	public void setPayed(boolean payed) {
		this.payed = payed;
	}
	public String getOpratorId() {
		return opratorId;
	}
	public void setOpratorId(String opratorId) {
		this.opratorId = opratorId;
	}

	
	public long getCreated() {
		return created;
	}
	public void setCreated(long created) {
		this.created = created;
	}
	public long getModified() {
		return modified;
	}
	public void setModified(long modified) {
		this.modified = modified;
	}
	
	public float getTotal() {
		return price * count;
	}
	public int getPonits() {
		return Ponits;
	}
	public void setPonits(int ponits) {
		Ponits = ponits;
	}
	public int getTotalPoints() {
		return Ponits*count;
	}
	public String getOrderId() {
		return orderId;
	}
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	
	public String getCategoryId() {
		return categoryId;
	}
	
	public void setCategoryId(String categoryId) {
		this.categoryId = categoryId;
	}
	
	public String getUnits() {
		return units;
	}
	public void setUnits(String units) {
		this.units = units;
	}
	public String getSpecification() {
		return specification;
	}
	public void setSpecification(String specification) {
		this.specification = specification;
	}
	
	public String toString() {
		return "Sellout [id=" + id + ",goodId=" + goodId + ",sellDate="
				+ sellDate + ",price=" + price + ",count=" + count
				+ ",payed=" + payed +",opratorId=" + opratorId +",created=" + created +",modified=" + modified + "]";
	}
}
